(nreverse new-list)))
(defun which-key--get-keymap-bindings (keymap &optional all prefix)
- "Retrieve top-level bindings from KEYMAP."
+ "Retrieve top-level bindings from KEYMAP.
+If ALL is non-nil, get all bindings, not just the top-level
+one. PREFIX is for internal use and should not be used."
(let (bindings)
(map-keymap
(lambda (ev def)
(unless (string-match-p which-key--ignore-keys-regexp key-desc)
(if (and all (keymapp def))
(setq bindings
- (append bindings (which-key--get-keymap-bindings def t key)))
+ (append bindings
+ (which-key--get-keymap-bindings def t key)))
(cl-pushnew
(cons key-desc
(cond